/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.drypisy;

import java.awt.image.BufferedImage;

/**
 *
 * @author Marcin Piłat
 */
public class MeshwarpProcess extends ImageProcess {
    private int width, height;
    private int rows, cols;
    private int srcMesh[][], destMesh[][];
    
    public void setRowsAndCols(int r, int c){
        rows = r;
        cols = c;
        srcMesh = new int[rows][cols];
    }
    
    public void setDestMesh(int dMesh[][]){
        destMesh = dMesh;
    }
    
    @Override
    public BufferedImage process(BufferedImage img) {
        width = img.getWidth();
        height = img.getHeight();
        BufferedImage destImg = new BufferedImage(width,height,BufferedImage.TYPE_INT_ARGB);
        BufferedImage intermImg = new BufferedImage(width,height,BufferedImage.TYPE_INT_ARGB);
        int i;
        int largest;
        if (width > height){
            largest = width;
        }else{
            largest = height;
        }
        
        return destImg;
    }

    @Override
    protected void getOriginalCoordinates(int x, int y, double[] out) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
